//.avatar {
//  width: 128px;
//  height: 128px;
//}
.upload-icon {
  font-size: 32px;
  color: #999;
}

.ant-upload-text {
  margin-top: 8px;
  color: #666;
}

.apes-upload-dialog {
  height: 35vh;

  .apes-upload-select-picture-card {
    //margin: auto;
  }

  .apes-upload-download {
    display: table;
    float: left;
    width: 104px;
    height: 104px;
    margin-right: 8px;
    margin-bottom: 8px;
    text-align: center;
    vertical-align: top;
    background-color: #fafafa;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s ease;

    &:hover {
      border-color: #0589DD;
    }

    .apes-download {
      width: 100%;
      height: 100%;
      display: table-cell;
      text-align: center;
      vertical-align: middle;
      padding: 8px;
    }
  }
}

.apes-preview-dialog {
  position: relative;
  height: 60vh;
  display: flex;
  justify-content: space-between;
}

.preview-dialog-content {
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  width: 500px;
  height: 500px;
  position: relative;
  //padding: 16px;
  overflow: hidden;

  .preview-dialog-content-loading {
    text-align: center;
    position: absolute;
    //height: calc(100% - 32px);
    height: 100%;
    //width: calc(100% - 32px);
    width: 100%;
    background: rgba(217, 236, 248, 0.5);

    /deep/ apes-spin {
      position: absolute;
      top: 50%;
      left: 50%;
    }
  }

  .image-tools {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
  }
}

//.preview-dialog-left{
//  position: absolute;
//  top: 33%;
//  font-size: 45px;
//  cursor: pointer;
//}

//.preview-dialog-right {
//  position: absolute;
//  top: 33%;
//  right: 0;
//  font-size: 45px;
//  cursor: pointer;
//}

.preview-carousel {
  //width: 30%;
  height: 500px;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  overflow: auto;
  flex: 1;

  .preview-thumbnail {
    position: relative;
    width: 100%;
    height: 25%;
    margin: 8px 0;

    .preview-thumbnail-img {
      max-width: 100%;
      max-height: 100%;
      width: auto;
      height: auto;
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate3d(-50%, -50%, 0);
      -webkit-transform: translate3d(-50%, -50%, 0);
      border-radius: 4px;
      border: 1px solid #d9d9d9;
      cursor: pointer;
    }
  }
}

.preview-dialog-content-svg {
  .svg-rect {
    stroke: #F83600;
    stroke-width: 4px;
    fill: white;
    fill-opacity: 0.4;
  }
}

.preview-dialog-content-img {
  transform-origin: center center;
  img {
    width: 100%;
    height: auto;
    //transform: translate3d(-50%, -50%, 0px);
    //left: 50%;
    //top: 50%;
    position: absolute;
  }
}
